import java.applet.Applet;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
public class AppletMachine extends Applet implements WindowListener
  {
  public void init()
    {
    add(new Machine(getParameter("graph")));
    setVisible(true);
    }
  public void windowIconified(WindowEvent e)
    {
    }
  public void windowDeiconified(WindowEvent e)
    {
    }
  public void windowActivated(WindowEvent e)
    {
    }
  public void windowDeactivated(WindowEvent e)
    {
    }
  public void windowOpened(WindowEvent e)
    {
    }
  public void windowClosed(WindowEvent e)
    {
    }
  public void windowClosing(WindowEvent e)
    {
    System.exit(0);
    }
  }
